package org.ppassantini.cham.core.business.dao;

/**
 * @author ppassantini
 * 
 *         Generic interface with CRUD operation
 *
 * @param <E>
 *            The Entity class
 * @param <K>
 *            The Key to access
 */
public interface GenericDao<E, K> {

	/**
	 * @param e
	 */
	void save(E e);

	/**
	 * @param e
	 */
	void update(E e);

	/**
	 * @param e
	 */
	void delete(E e);
	
	/**
	 * @param k
	 * @return
	 */
	E findByKey(K k);
}
